x86/build: Use new .nops directive when available
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Feb 2018 12:47:58 +0000 (12:47 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Aug 2018 18:01:11 +0000 (19:01 +0100)
commitb28cd21c36288a01ae61ed4f557802abc8ee03e4
tree2b2150ac98933b39bf57726b9bf90ebae4b0672f
parent053d91d3926c9f0afb54cf52c782482a1087bab3
x86/build: Use new .nops directive when available

Newer versions of binutils are capable of emitting an exact number bytes worth
of optimised nops, which are P6 nops.  Use this in preference to .skip when
available.

Check at boot time whether the toolchain nops are the correct for the running
hardware, andskip optimising nops entirely when possible.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Rules.mk
xen/arch/x86/alternative.c
xen/include/asm-x86/alternative-asm.h
xen/include/asm-x86/alternative.h